package com.s3.khospitalds.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.s3.khospitalds.entity.Userlogin;
import com.s3.khospitalds.mapper.UserloginMapper;
import com.s3.khospitalds.service.UserloginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: xw
 * @CreateTime: 2025/2/17
 * @Description: 登录用户
 * @Version: 1.0
 */
@Service
public class UserloginServiceImpl extends ServiceImpl<UserloginMapper, Userlogin> implements UserloginService {
    @Autowired
    private UserloginMapper userloginMapper;
    @Override
    public Userlogin userlogin(String name, String password) {
        return userloginMapper.findByNameAndPassword(name, password);
    }
}
